﻿using System;
namespace ElingOA6_Admin_DSJCJ.Model
{
	/// <summary>
	/// Task:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class Task
	{
		public Task()
		{
		}
		#region Model
		/// <summary>
		/// 
		/// </summary>
		public decimal FTaskID
		{
			set;
			get;
		}
		/// <summary>
		/// 
		/// </summary>
		public string FDeptNo
		{
			set;
			get;
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? FBeginDate
		{
			set;
			get;
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? FEndDate
		{
			set;
			get;
		}
		/// <summary>
		/// 
		/// </summary>
		public decimal? FScore
		{
			set;
			get;
		}
		/// <summary>
		/// 
		/// </summary>
		public string FContent
		{
			set;
			get;
		}
		/// <summary>
		/// 任务类别编码
		/// </summary>
		public string FTaskClassCd
		{
			set;
			get;
		}
		/// <summary>
		/// 公司编码
		/// </summary>
		public string FEntityNo
		{
			set;
			get;
		}
		/// <summary>
		/// 员工编号
		/// </summary>
		public string FInsEmpNo
		{
			set;
			get;
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? FInsDate
		{
			set;
			get;
		}
		/// <summary>
		/// 
		/// </summary>
		public string FInsIP
		{
			set;
			get;
		}
		/// <summary>
		/// 员工编号
		/// </summary>
		public string FUpdEmpNo
		{
			set;
			get;
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? FUpdDate
		{
			set;
			get;
		}
		/// <summary>
		/// 
		/// </summary>
		public string FUpdIP
		{
			set;
			get;
		}
		/// <summary>
		/// 员工编号
		/// </summary>
		public string FCheckEmpNo
		{
			set;
			get;
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? FCheckDate
		{
			set;
			get;
		}
		/// <summary>
		/// 
		/// </summary>
		public string FCheckIP
		{
			set;
			get;
		}
		/// <summary>
		/// 状态：
///1 - 正在处理
///2 - 未确认
///21 - 已办结
///22 - 已完成（扣）
///3 - 超期
///4 - 未完成
///5 - 撤消
		/// </summary>
		public string FStatus
		{
			set;
			get;
		}

        public string FStatusStr
        {
            get{
                switch (FStatus)
                {
                    case "1":
                        return "正在处理";
                    case "2":
                        return "未确认";
                    case "21":
                        return "已办结";
                    case "22":
                        return "已完成（扣）";
                    case "3":
                        return "超期";
                    case "4":
                        return "未完成";
                    case "5":
                        return "撤消";
                }
                return "";
            }
        }

        public string FTaskClassName
        {
            get;
            set;
        }

        public string FDeptName
        {
            get;
            set;
        }

        public string FInsDateStr
        {
            get {

                if (FInsDate != null)
                {
                    return DateTime.Parse(FInsDate.ToString()).ToString("yyyy-MM-dd");
                }
                else
                {
                    return "";
                }
            }
        }

        public string FEndDateStr
        {
            get
            {

                if (FEndDate != null)
                {
                    return DateTime.Parse(FEndDate.ToString()).ToString("yyyy-MM-dd");
                }
                else
                {
                    return "";
                }
            }
        }
		#endregion Model

	}
}

